import service from '@/utils/request'

// 用户查询列表
export const queryUserApi = (dataForm: any) => {
	return service.post('/api/user/query', dataForm)
}
// 用户更新
export const userDetailApi = (dataForm: any) => {
	return service.post('/api/user/detail', dataForm)
}

// 角色列表
export const queryRoleApi = (dataForm: any) => {
	return service.post('/api/role/query', dataForm)
}
// 权限配置详情
export const queryMenuSelected = (dataForm: any) => {
	return service.post('/api/role/queryMenuSelected', dataForm)
}
// 权限配置提交
export const roleMenuSubmitApi = (dataForm: any) => {
	return service.post('/api/role/doSave', dataForm)
}

export const roleSaveApi = (dataForm: any) => {
	return service.post('/api/role/saveOrUpdate', dataForm)
}

export const AddUserApi = (dataForm: any) => {
	return service.post('/api/user/saveOrUpdate', dataForm)
}

export const AddUserAuthApi = (dataForm: any) => {
	return service.post('/api/user/doSaveUserRole', dataForm)
}

export const queryApi = (dataForm: any) => {
	return service.post('/api/role/query', dataForm)
}
